<template>
  <div class="child1">
    <h3>子组件1 —— 我有{{computerNumber}}台电脑，我有{{book}}本书</h3>
    <button @click="$parent.n -= 1">干掉父亲1套房产</button>
  </div>
</template>

<script>

export default {
  name: 'Child1',
  data() {
    return {
      computerNumber:10,
      book:100
    }
  }
}
</script>

<style lang="less" scoped>
	.child1{
		background-color: orange;
		padding: 20px;
		border-radius: 10px;
    box-shadow: 0 0 10px black;
	}
</style>
